import {request} from "@/plugins/axios";

const teas = '/teas2';

export function list(data) {
    return new request({
        url: teas ,
        method: 'get',
        params: data
    })
}

export function add(teachers) {
    return new request({
        url: teas ,
        method: 'post',
        data: teachers
    })
}

export function del(tid) {
    return new request({
        url: `${teas}/${tid}` ,
        method: 'delete',
    })
}

export function get(tid) {
    return new request({
        url: `${teas}/${tid}` ,
        method: 'get',
    })
}

export function update(data) {
    return new request({
        url: teas ,
        method: 'put',
        data: data
    })
}
